package com.quectel.core.module.partyeducationexam.dto;

import com.quectel.core.module.partybuilding.dto.PartyOrganizationDto;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * @author ryan
 * @email ryan.ran@quectel.com
 * @date 2023/06/16 15:12
 */
@Data
@Schema
public class PartyEducationQuestionBankDto implements Serializable {

    /**
    * 
    */
    @Schema(description = "")
    private Long id;

    /**
    * 租户id
    */
    @Schema(description = "租户id")
    private Long tenantId;

    /**
    * 党组织id
    */
    @Schema(description = "党组织id")
    private Long partyId;

    /**
    * 题库名称
    */
    @Schema(description = "题库名称")
    private String name;

    /**
    * 分类
    */
    @Schema(description = "分类")
    private Byte classify;

    /**
    * 类型 1 私有 2 公开
    */
    @Schema(description = "类型 1 私有 2 公开")
    private Byte privacyType;

    /**
    * 状态
    */
    @Schema(description = "状态")
    private Byte status;

    /**
    * 题目计数
    */
    @Schema(description = "题目计数")
    private Integer questionCount;

    /**
    * 创建人
    */
    @Schema(description = "创建人")
    private String creator;

    /**
    * 创建时间
    */
    @Schema(description = "创建时间")
    private Date createTime;

    /**
    * 修改人
    */
    @Schema(description = "修改人")
    private String editor;

    /**
    * 修改时间
    */
    @Schema(description = "修改时间")
    private Date editTime;

    /************非数据库字段 start ************/
    @Schema(description = "所属党组织信息")
    private PartyOrganizationDto party;

    @Schema(description = "公开党组织ids")
    private Long[] partyIds;
    @Schema(description = "是否拥有 1 拥有 0 不拥有")
    private Byte owned;
    /************非数据库字段 end **************/
}
